#pragma once
#include "API.h"


void onTcpAccept(LPIOCPService pIOCPService, ENDPOINT_ID id, PTCP_CONN_INFO pConnInfo)
	{
		DbgPrint("%s", (char*)(((IOCPService*)pIOCPService)->getPrivate(id)));
	}
void onTcpConnected(LPIOCPService pIOCPService, ENDPOINT_ID id, PTCP_CONN_INFO pConnInfo)
	{
		DbgPrint("%s", (char*)(((IOCPService*)pIOCPService)->getPrivate(id)));
	}
void onTcpClosed(LPIOCPService pIOCPService, ENDPOINT_ID id)
	{
		DbgPrint("%s", (char*)(((IOCPService*)pIOCPService)->getPrivate(id)));
	}
void onTcpReceive(LPIOCPService pIOCPService, ENDPOINT_ID id, LPWSABUF pWsaBuffer)
	{
		DbgPrint("%s", (char*)(((IOCPService*)pIOCPService)->getPrivate(id)));
		DbgPrint("%s", pWsaBuffer->buf);
	}
void onTcpCanSend(LPIOCPService pIOCPService, ENDPOINT_ID id)
	{
		DbgPrint("%s", (char*)(((IOCPService*)pIOCPService)->getPrivate(id)));
	}